app.controller('utilController',function($scope,$location,utilService){
    $scope.countInfo=function(){
        utilService.countInfo().success(function (response) {
            if(response.success){
                $scope.countInfo = response.data;
            }
        });
    };
    $scope.noticeList=function(){
        utilService.noticeList().success(function (response) {
            if(response.success){
                $scope.noticeList = response.data;
            }
        });
    };
    $scope.sysInfo=function(){
        utilService.sysInfo().success(function (response) {
            if(response.success){
                $scope.sysInfo = response.data;
            }
        });
    }
    $scope.sendMail=function(){
        utilService.sendMail().success(function (response) {
            if(response.success){
                alert(response.data);
                $scope.email = {};
            }
        });
    }

});